﻿using Bot.Domain.Entities;
using Comm100.Framework;
using Comm100.Framework.AutoMapper;
using Comm100.Public;
using Bot.Domain.Bo;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Bot.Domain;

namespace Bot.Application.Dto
{
    [AutoMapTo(typeof(SmartTriggerUpdateBo))]
    public class SmartTriggerUpdateDto
    {
        public Guid Id { get; set; }
        public Guid BotId { get; set; }
        [Required]
        [MaxLength(SmartTriggerStringLength.MaxLength_Name)]
        public string Name { get; set; }
        [Required]
        public bool IsEnabled { get; set; }
        [Required]
        public int ConditionExpressionType { get; set; }
        [MaxLength(SmartTriggerStringLength.MaxLength_LogicalExpression)]
        public string LogicalExpression { get; set; }
        [Required]
        public int Order { get; set; }
        public List<SmartTriggerConditionUpdateDto> Conditions { get; set; }
        public List<SmartTriggerActionUpdateDto> Actions { get; set; }
    }
}